from random import*

cartes=[['R','R'],['R','V'],['V','V']]
RR=0
VV=0
RV=0
VR=0
for k in range(1000):
    choix_carte=cartes[randint(0,2)]
    choix_face=randint(0,1)
    if choix_face==0:
        face_montrée=choix_carte[0]
        face_cachée=choix_carte[1]
    else:
        face_montrée=choix_carte[1]
        face_cachée=choix_carte[0]
    if face_montrée=='R'and face_cachée=='R':
        RR=RR+1
    elif face_montrée=='R'and face_cachée=='V':
        VV=VV+1
    elif face_montrée=='R'and face_cachée=='V':
        RV==RV+1
    else:
        VR=VR+1
print(RR,RV,VR,VV)
